package com.ck.hxc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ck.hxc.pojo.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author hxc
 * @since 2025-01-22
 */
@Getter
@Setter
@TableName("sys_user")
@Schema(name = "SysUser", description = "用户表")
public class SysUser extends BaseEntity {

    @Schema(description = "姓名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "0：女 1：男")
    @TableField("sex")
    private Boolean sex;

    @Schema(description = "联系电话")
    @TableField("phone")
    private Long phone;

    @Schema(description = "职位主键id")
    @TableField("position_id")
    private Integer positionId;

    @Schema(description = "账号")
    @TableField("user_number")
    private String userNumber;

    @Schema(description = "密码")
    @TableField("password")
    private String password;

    @Schema(description = "0：正常，1：停用")
    @TableField("status")
    private Boolean status;

    @Schema(description = "治疗区，id集合")
    @TableField("cure_id")
    private String cureId;

    @Schema(description = "科室id")
    @TableField("dept_id")
    private Integer deptId;
}
